<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<title>审批纪录</title>
    <script src="__JS__/zepto.min.js"></script>
    <link href="__CSS__/weui.min.css" rel="stylesheet">
	<link rel="stylesheet" href="__SaleManager__/stylesheets/index.css">
</head>
<body>
	<div class="approvalRecord">
		<header class = "all_header">
			<a class = "h_back_1" style='flex: 1;' href="index"><img src="__SaleManager__/images/back_icon.png" alt="" style="width:30px;vertical-align: middle;"></a>
			<span class = "h_title">审批纪录</span>
			<a class = "h_add" href="./appliceSupport.html">申请支持</a>
		</header>
		<div class="weui-tab">
      <div class="weui-navbar">
        <div class="weui-navbar__item weui-bar__item_on">
            我发起的
        </div>
        <div class="weui-navbar__item">
            待审批
        </div>
        <div class="weui-navbar__item" style = "margin:0 1px;">
            已审批
        </div>
      </div>
      <div class="weui-tab__panel">
				<div class="record_list" style = "display: block;">
				<if condition="applyByMe neq ''">
					<volist name='applyByMe' id='v'>
      				<div class="record_w" data-apply-id="{$v.id}" data-role-id="{$myself.role_id}" data-apply-status="{$v.reply_status}" data-apply-applyuser="myself">
						<div class="record_l">
							<h4>{$v.ctype}</h4>
							<p class = "record_people"><span>发起人：</span><span>{$v.apply_name}</span><span class = "approval_date">{$v.apply_time|date='Y-m-d',###}</span></p>
						</div>
						<switch name="v.reply_status">
						
						    <case value='1'>
						    		<div class="record_r pre_approval">
									{$v.apply_cstatus}
								</div>
						    </case>
						    <case value="2">
						    		<div class="record_r no_approval">
									{$v.apply_cstatus}
								</div>
						    </case>
						    <case value="0">
						    			<div class="record_r next_approval">
									{$v.apply_cstatus}
								</div>
							</case>
						</switch>
					</div>
      			</volist>
				<else/>
					<div class="no_record">
						<div class="no_img">
							<img src="__SaleManager__/images/no_approve.png" alt="">
						</div>
						<div class="no_tips">
							暂无审批纪录
						</div>
					</div>
				</if>
				</div>
				
				
				<div class="record_list">
					<if condition="waitProve neq ''">
					<volist name='waitProve' id='v'>
      				<div class="record_w" data-apply-id="{$v.id}" data-role-id="{$myself.role_id}" data-apply-status="{$v.reply_status}" >
						<div class="record_l">
							<h4>{$v.ctype}</h4>
							<p class = "record_people"><span>发起人：</span><span>{$v.apply_name}</span><span class = "approval_date">{$v.apply_time|date='Y-m-d',###}</span></p>
						</div>
						<switch name="v.reply_status">
						
						    <case value='1'>
						    		<div class="record_r pre_approval">
									{$v.apply_cstatus}
								</div>
						    </case>
						    <case value="2">
						    		<div class="record_r no_approval">
									{$v.apply_cstatus}
								</div>
						    </case>
						    <case value="0">
						    			<div class="record_r next_approval">
									{$v.apply_cstatus}
								</div>
							</case>
						</switch>
					</div>
      			</volist>
				<else/>
					<div class="no_record">
						<div class="no_img">
							<img src="__SaleManager__/images/no_approve.png" alt="">
						</div>
						<div class="no_tips">
							暂无审批纪录
						</div>
					</div>
				</if>
				</div>
				<div class="record_list">
					<if condition="approved neq ''">
					<volist name='approved' id='v'>
      				<div class="record_w" data-apply-id="{$v.id}" data-role-id="{$myself.role_id}" data-apply-status="{$v.reply_status}">
						<div class="record_l">
							<h4>{$v.ctype}</h4>
							<p class = "record_people"><span>发起人：</span><span>{$v.apply_name}</span><span class = "approval_date">{$v.apply_time|date='Y-m-d',###}</span></p>
						</div>
						<switch name="v.reply_status">
						
						    <case value='1'>
						    		<div class="record_r pre_approval">
									{$v.apply_cstatus}
								</div>
						    </case>
						    <case value="2">
						    		<div class="record_r no_approval">
									{$v.apply_cstatus}
								</div>
						    </case>
						    <case value="0">
						    			<div class="record_r next_approval">
									{$v.apply_cstatus}
								</div>
							</case>
						</switch>
					</div>
      			</volist>
				<else/>
					<div class="no_record">
						<div class="no_img">
							<img src="__SaleManager__/images/no_approve.png" alt="">
						</div>
						<div class="no_tips">
							暂无审批纪录
						</div>
					</div>
				</if>
				</div>
      </div>
    </div>
	</div>
	<script src = "__SaleManager__/js/index.js"></script>
	<script src = "__SaleManager__/js/androidback.js"></script>
</body>
</html>